<%@ page language="java" import="java.util.*,com.beans.*"
	pageEncoding="UTF-8"%>
<html>
	<head>
		<title>allmsg</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
		marginheight="0">
		<!-- ImageReady Slices (index0.psd) -->
		<table width="1025" height="901" border="0" align="center"
			cellpadding="0" cellspacing="0" id="__01">
			<tr>
				<td colspan="7" rowspan="2">
					<img src="images/listmoreword_01.jpg" width="838" height="225"
						alt="">
				</td>
				<td>
					<img src="images/listmoreword_02.jpg" alt="" width="83" height="27"
						border="0" usemap="#Map">
				</td>
				<td colspan="3">
					<img src="images/listmoreword_03.jpg" alt="" width="84" height="27"
						border="0" usemap="#Map2">
				</td>
				<td colspan="3" rowspan="2">
					<img src="images/listmoreword_04.jpg" width="19" height="225"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="27" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="4">
					<img src="images/listmoreword_05.jpg" width="167" height="198"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="198" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3" rowspan="3">
					<img src="images/listmoreword_06.jpg" alt="" width="155"
						height="76" border="0" usemap="#Map3">
				</td>
				<td rowspan="19">
					<img src="images/listmoreword_07.jpg" width="30" height="615"
						alt="">
				</td>
				<td colspan="8">
					<img src="images/listmoreword_08.jpg" width="822" height="39"
						alt="">
				</td>
				<td colspan="2" rowspan="19">
					<img src="images/listmoreword_09.jpg" width="17" height="615"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="39" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="8">
					<img src="images/listmoreword_10.jpg" width="822" height="22"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="22" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="2" rowspan="14">
					<img src="images/listmoreword_11.jpg" width="18" height="500"
						alt="">
				</td>
				<td colspan="3" rowspan="2" background="images/listmoreword_12.jpg">
					<table width="789" height="35" border="0" cellspacing="0">
						<tr>
							<th scope="col">
								ALL MESSAGES
								<hr color=green>
								<br>
							</th>
						</tr>
					</table>
				</td>
				<td colspan="3" rowspan="14">
					<img src="images/listmoreword_13.jpg" width="15" height="500"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="15" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3" rowspan="2">
					<img src="images/listmoreword_14.jpg" alt="" width="155"
						height="69" border="0" usemap="#Map4">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="20" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3" rowspan="12" background="images/listmoreword_15.jpg">
					<table width="789" height="465" border="0" cellspacing="0">
						<tr>
							<td align="left" valign="top" style="font-size: 13px">
								<%
									int pageno = Integer.parseInt(request.getParameter("pageno"));
									int totalrecord = Integer
											.parseInt(request.getParameter("msgcount"));
									int totalpage = 0;
									int pagesize = 15;
									if (totalrecord % pagesize == 0) {
										totalpage = totalrecord / pagesize;
									} else {
										totalpage = (int) Math.floor(totalrecord / pagesize) + 1;
									}
									ArrayList<Msgbean> allmsg = (ArrayList<Msgbean>) request
											.getAttribute("allmsg");
									Iterator<Msgbean> it = allmsg.iterator();
									int i = 0;
									while (it.hasNext()) {
										Msgbean msg = (Msgbean) it.next();
										out.println(msg.getMsg());
										out.println("<div align=right>" + msg.getUsername() + "--");
										out.println(msg.getTime() + "</div><br>");
										out.println("<hr color=red>");
									}
									if (pageno != 1) {
										out
												.print("<a href=/vk/deal?deal=allmsg&pageno=1>|<&nbsp;&nbsp;</a>");
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + (pageno - 1)
												+ "><&nbsp;&nbsp;</a>");
									}
									for (i = pageno; i < pageno + 4; i++) {
										if (i >totalpage)
											break;
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + i + ">" + i
												+ "&nbsp;&nbsp;</a>");
									}
									if (pageno != totalpage) {
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + (pageno + 1)
												+ ">>&nbsp;&nbsp;</a>");
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + totalpage
												+ ">>|</a>");
									}
									out.print("Pages:(" + totalpage + ")total");
								%>
							</td>
						</tr>
					</table>
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="49" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<img src="images/listmoreword_16.jpg" alt="" width="155"
						height="71" border="0" usemap="#Map5">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="71" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<img src="images/listmoreword_17.jpg" alt="" width="155"
						height="72" border="0" usemap="#Map6">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="72" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<img src="images/listmoreword_18.jpg" alt="" width="155"
						height="71" border="0" usemap="#Map7">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="71" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<img src="images/listmoreword_19.jpg" width="155" height="54"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="54" alt="">
				</td>
			</tr>
			<tr>
				<td rowspan="11">
					<img src="images/listmoreword_20.jpg" width="27" height="262"
						alt="">
				</td>
				<td>
					<img src="images/listmoreword_21.jpg" alt="" width="93" height="45"
						border="0" usemap="#Map8">
				</td>
				<td rowspan="11">
					<img src="images/listmoreword_22.jpg" width="35" height="262"
						alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="45" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/listmoreword_23.jpg" width="93" height="6" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="6" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/listmoreword_24.jpg" alt="" width="93" height="39"
						border="0" usemap="#Map9">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="39" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/listmoreword_25.jpg" width="93" height="7" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="7" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/listmoreword_26.jpg" alt="" width="93" height="40"
						border="0" usemap="#Map10">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="40" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/listmoreword_27.jpg" width="93" height="9" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="9" alt="">
				</td>
			</tr>
			<tr>
				<td rowspan="3">
					<img src="images/listmoreword_28.jpg" alt="" width="93" height="40"
						border="0" usemap="#Map11">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="2" alt="">
				</td>
			</tr>
			<tr>
				<td rowspan="3">
					<img src="images/listmoreword_29.jpg" width="17" height="54" alt="">
				</td>
				<td colspan="5" background="images/listmoreword_30.jpg">
					&nbsp;
				</td>
				<td colspan="2" rowspan="3">
					<img src="images/listmoreword_31.jpg" width="14" height="54" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="35" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="5" rowspan="2">
					&nbsp;
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="3" alt="">
				</td>
			</tr>
			<tr>
				<td rowspan="2">
					<img src="images/listmoreword_33.jpg" width="93" height="76" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="16" alt="">
				</td>
			</tr>
			<tr>
				<td colspan="10">
					<img src="images/listmoreword_34.jpg" width="853" height="60"
						alt="">
				</td>
				<td>
					<img src="images/listmoreword_35.jpg" width="16" height="60" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="60" alt="">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/fgf.gif" width="27" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="93" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="35" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="30" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="17" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="635" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="83" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="71" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="12" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="2" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="1" height="1" alt="">
				</td>
				<td>
					<img src="images/fgf.gif" width="16" height="1" alt="">
				</td>
				<td></td>
			</tr>
		</table>
		<!-- End ImageReady Slices -->

		<map name="Map">
			<area shape="rect" coords="6,3,88,37" href="regist.jsp">
		</map>
		<map name="Map2">
			<area shape="rect" coords="4,4,92,36" href="login.jsp"
				target="_blank">
		</map>
		<map name="Map3">
			<area shape="rect" coords="2,2,167,86" href="index.jsp"
				target="_self">
		</map>
		<map name="Map4">
			<area shape="rect" coords="1,2,158,76" href="index_nv.jsp"
				target="_self">
		</map>
		<map name="Map5">
			<area shape="rect" coords="3,1,162,91" href="index_nan.jsp"
				target="_self">
		</map>
		<map name="Map6">
			<area shape="rect" coords="0,2,157,81" href="index_lx.jsp"
				target="_self">
		</map>
		<map name="Map7">
			<area shape="rect" coords="2,0,154,84" href="/vk/deal?deal=message"
				target="_self">
		</map>
		<map name="Map8">
			<area shape="rect" coords="2,1,112,66" href="http://www.10010.com"
				target="_blank">
		</map>
		<map name="Map9">
			<area shape="rect" coords="2,2,91,53"
				href="http://www.chinamobile.com/" target="_blank">
		</map>
		<map name="Map10">
			<area shape="rect" coords="1,1,133,58"
				href="http://www.rayli.com.cn/" target="_blank">
		</map>
		<map name="Map11">
			<area shape="rect" coords="0,2,105,58" href="http://www.ct10000.com/"
				target="_blank">
		</map>
	</body>
</html>